<!-- 事件绑定 -->
<template>
    <div>
        <div><input type="button" value="点击执行m1" @click="m1"></div>
        <div><input type="button" value="点击执行m2" @click="m2"></div>
        <div>{{count}}</div>
    </div>
</template>
<script>
const options = {
    data: function () {
        return { count: 0 }
    },
    methods:{
        m1(){
            //弹窗
            // alert('点击事件m1')
            this.count++;
        },
        m2(){
            this.count--;
            console.log('点击事件m2')
        }
    }
}
export default options
</script>